import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqEntityIdHelper } from "./SeqEntityIdHelper";
import { SPoint } from "./SPoint";
type int = number;
//class SFightTo
    
    export  class SFightTo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SFightTo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.op);
            arg1.writeInt(this.code);
            this.mousePoint.__write(arg1);
            SeqEntityIdHelper.write(arg1, this.entityIds);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.op = arg1.readInt();
            this.code = arg1.readInt();
            this.mousePoint = new SPoint();
            this.mousePoint.__read(arg1);
            this.entityIds = SeqEntityIdHelper.read(arg1);
            return;
        }

        public /* const */_type: int=3;

        public /* var */op: int;

        public /* var */code: int;

        public /* var */mousePoint: SPoint;

        public /* var */entityIds: Array<any>;

        public static /* var */_regist: SFightTo;
    }

            SFightTo._regist = new SFightTo(true);
        